package com.zhang.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @author ZhangJunqi
 * @Date 2022/3/22 -22:52
 */
@Service    //提供者注意是dubbo的service
@Component
public class TicketServerImpl implements TicketService {
    @Override
    public String getTicket() {
        return "老张要买票回家";
    }
}
